package com.wfs.utils;

/**
 * @author: wfs
 * @Date: 2021/1/13 10:37
 * @Description:
 */
public class Common {
    static final int ID_TO_NAME = 1;
    static final int ID_TO_CODE = 2;
    static final int CODE_TO_NAME = 3;

    static final String ID_TO_NAME_PREFIX = "a_";
    static final String CODE_TO_NAME_PREFIX = "b_";
    static final String ID_TO_ENABLE_PREFIX = "c_";
    static final String NULL = "NULL";

    public static boolean isIdTranslateType(int type) {

        return type == ID_TO_CODE
                || type == ID_TO_NAME;
    }
    public static boolean isCodeTranslateType(int type) {
        return type == CODE_TO_NAME;
    }

    public static boolean isTranslateType(int type) {
        return isIdTranslateType(type) || isCodeTranslateType(type);
    }

}
